package com.atguigu.springcloud.alibaba.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.atguigu.springcloud.entities.CommonResult;

/**
 * @program: cloud2020
 * @description:
 * @author: 陈恩涛
 * @create: 2022-03-15 15:52
 **/
public class CustomerBlockHandler {

    public static CommonResult handlerException(BlockException excecption) {
        return new CommonResult(444,"按客户自定义,Global Exception Handler---1");
    }

    public static CommonResult handlerException2(BlockException excecption) {
        return new CommonResult(444,"按客户自定义,Global Exception Handler---2");
    }
}
